package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbAlterationLogMapper;
import com.ruoyi.system.domain.TbAlterationLog;
import com.ruoyi.system.service.ITbAlterationLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-24
 */
@Service
public class TbAlterationLogServiceImpl implements ITbAlterationLogService 
{
    @Autowired
    private TbAlterationLogMapper tbAlterationLogMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param tzid 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public TbAlterationLog selectTbAlterationLogById(Long tzid)
    {
        return tbAlterationLogMapper.selectTbAlterationLogById(tzid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tbAlterationLog 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TbAlterationLog> selectTbAlterationLogList(TbAlterationLog tbAlterationLog)
    {
        return tbAlterationLogMapper.selectTbAlterationLogList(tbAlterationLog);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tbAlterationLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTbAlterationLog(TbAlterationLog tbAlterationLog)
    {
        return tbAlterationLogMapper.insertTbAlterationLog(tbAlterationLog);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tbAlterationLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTbAlterationLog(TbAlterationLog tbAlterationLog)
    {
        return tbAlterationLogMapper.updateTbAlterationLog(tbAlterationLog);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteTbAlterationLogByIds(String ids)
    {
        return tbAlterationLogMapper.deleteTbAlterationLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param tzid 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteTbAlterationLogById(Long tzid)
    {
        return tbAlterationLogMapper.deleteTbAlterationLogById(tzid);
    }
}
